<?php
    $xtpl_show      = new XTemplate("view/customer/show.htm");
    
    $title      = "Thông tin khách hàng";
    $id         = $_GET['id'];
    
    $sql        = "SELECT * FROM customer WHERE id_c='" . $id . "'";
    $result     = mysql_query($sql);
    $row        = mysql_fetch_array($result);
    
    $xtpl_show  -> assign('fullname', $row['fullname']);
    $xtpl_show  -> assign('email', $row['email']);
    $xtpl_show  -> assign('address', $row['address']);
    $xtpl_show  -> assign('phone', $row['phone']);
    
    $xtpl_show      -> parse("SHOW");
    $content        = $xtpl_show -> text("SHOW");
?>